﻿using Simple.Common.Core.Enums;
using Simple.Common.EntityFrameworkCore.Entities;
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Simple.Admin.Domain.Models
{
    /// <summary>
    /// 实体 Admin_User
    /// </summary>
    [Table("Admin_User")]
    public partial class AdminUser : FullAggregateRoot<Guid>
    {
        /// <summary>
        /// 姓名
        /// </summary>
        [MaxLength(50)]
        [Required]
        public string Name { get; set; }
        /// <summary>
        /// 性别(1为男，2为女)
        /// </summary>
        public EnumSexType? Sex { get; set; } = 0;
        /// <summary>
        /// 出生日期
        /// </summary>
        public DateTime? Birthday { get; set; }
        /// <summary>
        /// 所属部门Id
        /// </summary>
        public Guid? DepartmentId { get; set; }
        /// <summary>
        /// 是否启用
        /// </summary>
        public bool IsEnable { get; set; } = false;

        /// <summary>
        /// 审核状态
        /// </summary>
        public EnumAuditStatus? AuditStatus { get; set; } = EnumAuditStatus.待审核;

    }
}